$(document).ready(function(){
	$('#navHead').empty();
	$('#body').empty();
	
	$('#navHead').append('<div class="row"><div class="col-lg-6"><div class="input-group"><div class="input-group-btn"><button type="button"class="btn btn-default dropdown-toggle"data-toggle="dropdown"aria-haspopup="true"aria-expanded="false">学校<span class="caret"></span></button><ul class="dropdown-menu" id="sch_list"></ul></div><input type="text"class="form-control"aria-label="..."placeholder="筛选条件"style="width: 70%"><button type="button"class="btn btn-default"aria-expanded="false">筛选</button></div><!--/input-group--></div></div>');
	$('#body').append('<div class="panel panel-defalut"style="padding-top: 10px"><div class="panel-body"><table class="table"><tr><td colspan="2"><img src="http://liveser.cn/img/en_4.jpg"/></td></tr><tr><td style="width : 70%">ligoudan</td><td>&nbsp;</td></tr><tr><td style="width : 50%"><span>aaa</span>&nbsp;&nbsp;<span>heading</span></td><td align="right"><span>content</span><span color="#DDD">10</span></td></tr></table></div></div>');
	
	$.post('http://liveser.cn/new/index/get/school',
	{
		data : 1
	},
	function(data,status)
	{
		//alert(data);
		json1=eval("("+data+")");
		for(var i =0;i<json1.length;i++)
		{
			var school = json1[i];
			switch(school)
			{
				case 'ECNU':
				school = '华东师大';break;
				case 'SJTU':
				school = '上海交大';break;
				defalut : break;
			}
			$('#sch_list').append('<li><a id ="'+json1[i]+'">'+school+'</a></li>');
		}
		
	});
	
});